import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		userInfo: {
		},
	},
	getters:{
		getUserByID(state){
			return state.userInfo;
		},
	},
	mutations: {
		changeUserInfo(state,data) {
			state.userInfo[data.id] = data.user;
		},
	},
	actions: {
		// changeAddressFunc(context, addressID){
		// 	context.commit("changeAddress", addressID);
		// },
	}
})

export default store
